﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RedirectListControl.ascx.cs" Inherits="Dms.UmbracoExtension.ManageRedirects.Plugins.ManageRedirects.Usercontrols.RedirectListControl" %>


<h3>URL redirects</h3>
<br /><br />
<table width="98%" class="listTable" cellpadding="5" cellspacing="0">
    <thead>
        <tr>
            <th>
                From
            </th>
            <th>
                To
            </th>
            <th>
                Type
            </th>
            <th>
                &nbsp;
            </th>
        </tr>
    </thead>
    <asp:ListView ID="redirectListview" runat="server">
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Literal ID="fromUrlLiteral" runat="server"></asp:Literal>
                </td>
                <td>
                    <asp:Literal ID="toUrlLiteral" runat="server"></asp:Literal>
                </td>           
                <td>
                    <asp:Literal ID="statusLiteral" runat="server"></asp:Literal>
                </td>  
                <td style="text-align:right;">
                    <asp:LinkButton ID="deleteLinkbutton" runat="server">Delete</asp:LinkButton>&nbsp;|&nbsp;<asp:HyperLink ID="detailHyperlink" runat="server">Edit</asp:HyperLink>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="alternatingItem">
                <td>
                    <asp:Literal ID="fromUrlLiteral" runat="server"></asp:Literal>
                </td>
                <td>
                    <asp:Literal ID="toUrlLiteral" runat="server"></asp:Literal>
                </td>           
                <td>
                    <asp:Literal ID="statusLiteral" runat="server"></asp:Literal>
                </td>  
                <td style="text-align:right;">
                                        <asp:LinkButton ID="deleteLinkbutton" runat="server">Delete</asp:LinkButton>&nbsp;|&nbsp;<asp:HyperLink ID="detailHyperlink" runat="server">Edit</asp:HyperLink>
                </td>
            </tr>
        </AlternatingItemTemplate>
    </asp:ListView>
</table>
<br />
<asp:DataPager ID="redirectDataPager" runat="server" PagedControlID="redirectListview" PageSize="20">
    <Fields>
        <asp:NumericPagerField ButtonType="Link" ButtonCount="5" />
    </Fields>
</asp:DataPager>